
//var arr = [15,4,5,11,1];

//console.log(arr.length);

//arr.sort();

//console.log(arr);

/*arr.soft1sort=function(fn){
    for(var j=0;j<this.length;j++){
    var item=this[j]
    var idx = 0
    for(var i=j+1;i<this.length;i++){
        if(fn(item,this[i])){
            item=this[i];
            idx=i;
        }
    }
    if(this[j]!==item){
        var a=this[j]
        this[j]=this[idx]
        this[idx] = a
    }
    console.log(arr);
    }
}

arr.soft1sort((a,b)=>a>b);
*/





var arr = [[1, 2, 3], [400, 500, 600], '-'];



console.log(arr[2][0]);